package com.service.approval.valuedata;

import java.util.Date;

public class InsurancePolicy implements ValueObject {

	/**
	 * 钧保保单号
	 */
	private String jbPolicyNo;

	/**
	 * 渠道编码
	 */
	private String merchantNo;

	/**
	 * 渠道订单号
	 */
	private String merchantOrderNo;

	/**
	 * 订单号
	 */
	private String orderNo;

	/**
	 * 保单号
	 */
	private String policyNo;

	/**
	 * 保单状态
	 */
	private Integer status;

	/**
	 * 投保单号
	 */
	private String expectPolicyNo;

	/**
	 * 保单生效时间
	 */
	private Date effictiveDate;

	/**
	 * 保单失效时间
	 */
	private Date expiryDate;

	/**
	 * 产品名称
	 */
	private String jbProductName;

	/**
	 * 产品编码
	 */
	private String jbProductCode;

	/**
	 * 计划名称
	 */
	private String jbPlanName;

	/**
	 * 计划编码
	 */
	private String jbPlanCode;

	/**
	 * 保费
	 */
	private String price;

	/**
	 * 保额
	 */
	private String amount;

	/**
	 * 保险公司名称
	 */
	private String companyName;

	/**
	 * 保险公司编码
	 */
	private String companyCode;

	
	public InsurancePolicy(String merchantNo, String merchantOrderNo, String orderNo, Date effictiveDate,Date expiryDate) {
		this.merchantNo = merchantNo;
		this.merchantOrderNo = merchantOrderNo;
		this.orderNo = orderNo;
		this.effictiveDate = effictiveDate;
		this.expiryDate = expiryDate;
	}
	
	public InsurancePolicy buildProductInfo(String jbProductName, String jbProductCode, String jbPlanName, String jbPlanCode, String price, String amount, String companyName, String companyCode) {
		this.jbProductName = jbProductName;
		this.jbProductCode = jbProductCode;
		this.jbPlanName = jbPlanName;
		this.jbPlanCode = jbPlanCode;
		this.price = price;
		this.amount = amount;
		this.companyName = companyName;
		this.companyCode = companyCode;
		return this;
	}

	public InsurancePolicy() {
	}

	public String getJbPolicyNo() {
		return jbPolicyNo;
	}

	public void setJbPolicyNo(String jbPolicyNo) {
		this.jbPolicyNo = jbPolicyNo;
	}

	public String getMerchantNo() {
		return merchantNo;
	}

	public void setMerchantNo(String merchantNo) {
		this.merchantNo = merchantNo;
	}

	public String getMerchantOrderNo() {
		return merchantOrderNo;
	}

	public void setMerchantOrderNo(String merchantOrderNo) {
		this.merchantOrderNo = merchantOrderNo;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getPolicyNo() {
		return policyNo;
	}

	public void setPolicyNo(String policyNo) {
		this.policyNo = policyNo;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getExpectPolicyNo() {
		return expectPolicyNo;
	}

	public void setExpectPolicyNo(String expectPolicyNo) {
		this.expectPolicyNo = expectPolicyNo;
	}

	public Date getEffictiveDate() {
		return effictiveDate;
	}

	public void setEffictiveDate(Date effictiveDate) {
		this.effictiveDate = effictiveDate;
	}

	public Date getExpiryDate() {
		return expiryDate;
	}

	public void setExpiryDate(Date expiryDate) {
		this.expiryDate = expiryDate;
	}

	public String getJbProductName() {
		return jbProductName;
	}

	public void setJbProductName(String jbProductName) {
		this.jbProductName = jbProductName;
	}

	public String getJbProductCode() {
		return jbProductCode;
	}

	public void setJbProductCode(String jbProductCode) {
		this.jbProductCode = jbProductCode;
	}

	public String getJbPlanName() {
		return jbPlanName;
	}

	public void setJbPlanName(String jbPlanName) {
		this.jbPlanName = jbPlanName;
	}

	public String getJbPlanCode() {
		return jbPlanCode;
	}

	public void setJbPlanCode(String jbPlanCode) {
		this.jbPlanCode = jbPlanCode;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
}
